package cn.fancy.sdk.pay.entity;

import org.json.JSONException;
import org.json.JSONObject;

import cn.fancy.sdk.entity.JsonParseInterface;

public class Charge implements JsonParseInterface{
	public static final String _account = "a";   
	public static final String _password = "b";
    /**
     * 充值卡账户
     */
    private String account;
    /**
     * 充值卡密码
     */
    private String password;
    
	public void setAccount(String account) {
		this.account = account;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public JSONObject buildJson() {
		// TODO Auto-generated method stub
		try 
		{
			JSONObject json = new JSONObject();
			json.put(_account, account);
			json.put(_password, password);
			return json;
		} 
		catch (JSONException e) 
		{
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public void parseJson(JSONObject json) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getShortName() {
		// TODO Auto-generated method stub
		return "Charge";
	}

}
